package com.mdhw.common.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * 渠道商验签
 */
@Aspect
@Component
//@ConditionalOnProperty(name = "project.jwt.pattern-anno", havingValue = "true", matchIfMissing = true)
public class BusinessCheckSignatureAop {


    @Autowired
    private HttpServletRequest request;

    @Pointcut("@annotation(com.mdhw.common.annotation.BusinessCheckSignature)")
    public void businessCheckSignature() {

    };

    @Around("businessCheckSignature()")
    public Object checkSignature(ProceedingJoinPoint point){

        return null;
    }
}
